//
//  AppRequest+Auth.m
//  ApeExample
//
//  Created by Eton on 2017/7/27.
//  Copyright © 2017年 王-庭协. All rights reserved.
//

#import "AppRequest+Auth.h"
#import "LoginModel.h"

@implementation AppRequest (Auth)

+ (RACSignal *) requestLogin:(RACTuple *) turple{
    NSMutableDictionary * params = [NSMutableDictionary dictionary];
    [params setValue:turple.first forKey:@"user_name"];
    [params setValue:turple.second forKey:@"password"];
    [params setValue:@YES forKey:@"force_login"];
    return [AppRequest racPOST:@"common/login" params:params class:[LoginModel class]];
}

@end
